//
//  SYDCLLocationManager.h
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/9/5.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import <Foundation/Foundation.h>
@import CoreLocation;
@import UIKit;

typedef void(^locationFialed)(void);
typedef void(^LocationFialedBlock)(BOOL canServer);
typedef void(^locationSuccess)(CLLocationCoordinate2D coordinate, NSString * address);
typedef void(^LocationSuccessBlock)(CLLocation * location);

@interface SYDCLLocationManager : AMapLocationManager

+ (instancetype)sharedManager;

@property (nonatomic, assign) CGFloat minSpeed;     //最小速度
@property (nonatomic, assign) CGFloat minFilter;    //最小范围
@property (nonatomic, assign) CGFloat minInteval;   //更新间隔

@property (nonatomic, copy) locationFialed locationFialedBlock;
@property (nonatomic, copy) LocationFialedBlock locationBlock;
@property (nonatomic, copy) locationSuccess locationSuccessBlock;
@property (nonatomic, copy) LocationSuccessBlock locationSuccess_block;
//是否有开启定位权限
- (void)openLocationServicesSetting:(UIViewController *)vc codeString:(NSString *)codeString;

@end



